/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2013/03/05
* File: RenderTargetBase.h
**/

#pragma once

#include "Texture2D.h"

namespace HY
{
class RenderTarget2D : public RenderObject
{
public:
	virtual ~RenderTarget2D() {}

	virtual void setColorTexture(uint8 idx, Texture2D* tex) = 0;
	virtual void setDepthTexture(Texture2D* tex) = 0;

	virtual void bind() = 0;
	virtual void unbind() = 0;

	virtual const IntVector2& getSize() const = 0;
protected:
	RenderTarget2D() : RenderObject(TypeRenderTarget2D)
	{

	}
};
}